import { create } from 'zustand'
// import { create } from '../sources/zutand'

export const useBearStore = create((set) => ({
    username: "张三",
    // 关联上一个state的方式
    // setUsername: (username) => set((state) => ({ username })),
    setUsername: (username) => set({ username }),

    unReadCount: 1,
    setUnReadCount: (unReadCount) => set({ unReadCount }),
}))